package com.yimi.yinhepda.adapter.RecycleAdapter;

import android.content.Context;

import com.yimi.yinhepda.R;
import com.pda.ym.base.CommonRecycleAdapter;
import com.pda.ym.base.CommonViewHolder;
import com.yimi.yinhepda.entity.bean.BackoutEntity;

import java.util.List;

/**
 * @author: lj
 * Date: 2018/12/24
 * Description:移库装卸撤销运单适配器
 */
public class MoveStockBackoutAdapter extends CommonRecycleAdapter<BackoutEntity> {

    public MoveStockBackoutAdapter(Context context, List<BackoutEntity> dataList) {
        super(context, dataList, R.layout.activity_del_scaned_waybillitem);
    }

    @Override
    public void bindData(CommonViewHolder holder, BackoutEntity data, int position) {
        holder.setText(R.id.cancelwaybill,data.getWaybill());
        holder.setText(R.id.scanedwaybillnum,data.getScanedwaybillsNum());
        holder.setText(R.id.canceledwaybillnum,data.getCancelwaybillsNum());
    }
}
